﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/tree.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.3.1.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/sysRight/userRight.js"></script>
		
	<script type="text/javascript">
	</script>
	<script type="text/javascript">
		$(function(){
			 initSQuery("DATALIST",'${m.prefix}');
		})
	</script>
	</head>
	<body>
		<div>
			<table cellpadding="0" cellspacing="0" style="width: 100%;height:100%;padding-top: 10px;min-width: 1248px;">
				<tr>
					<td>
						<div id="${m.prefix}_useCon" pre='${m.prefix}'  >  
							<table class='tableBord' id="${m.prefix}_commUse"  style="float: left"></table>
							<span style="line-height: 35px;margin-left: 10px">
								<input type="checkbox"  id='queryCB' onclick="showQuery(this,'${m.prefix}_QueryList','${m.prefix}_config',1)"/>
								<span style="cursor: pointer;" onclick="showQuerySpan(this,'${m.prefix}_QueryList','${m.prefix}_config',1)">多条件查询</span>
							</span>
				        </div>  
					</td>
					<td align="right" style="vertical-align: top; ">
						<div align="right" style=" width:450px;" id="${m.prefix}_queryButn">
							<c:forEach items="${m.butnList[0]}" var="butn">
								<a class='easyui-linkbutton' onclick="${butn.SCRIPT_FUNC}" id='${m.prefix}_${butn.BUT_CODE}' iconCls="${butn.ICON}"   pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1' right='${butn.BUT_RIGHT}'>${butn.BUTN_NAME}</a>
							</c:forEach>
						</div> 
						 
					</td>
				</tr>
				<tr>
					<td>
						<div>
							<c:if test="${fn:length(m.preButnList)>0}">
								<c:forEach items="${m.preButnList[0]}" var="but">
									<c:if test="${but.IS_GROUP != null}">
										<c:if test="${not empty but.IS_GROUP && but.IS_GROUP =='T'}">
											<a href="javascript:void(0)" id="mb2" plain="false"
												 menu="#${but.GROUP_ID}" class="easyui-menubutton"
												iconCls="icon-help">${but.BUTN_NAME}</a>
												
												<div id="${but.GROUP_ID}" style="width: 150px;">
													<c:forEach items="${m.preButnList[0]}" var="butn">
														<c:if test="${butn.IS_GROUP != 'T' && not empty butn.GROUP_ID && butn.GROUP_ID !=null && butn.GROUP_ID==but.GROUP_ID}">
															<div iconCls="icon-undo"> ${butn.BUTN_NAME}</div>
														</c:if>
													</c:forEach>
												</div>
										</c:if>
									</c:if>
									<c:if test="${but.IS_GROUP !='T' && (but.GROUP_ID == null || empty but.GROUP_ID)}">
										<a class='easyui-linkbutton' onclick="${but.SCRIPT_FUNC}" id='${m.prefix}_${but.BUT_CODE}'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1' right='${but.BUT_RIGHT}'>${but.BUTN_NAME}</a>
									</c:if>
								</c:forEach>
							</c:if>
						</div>
					</td>
				</tr>
		    </table>
		</div>		 
	</body>
</html>